{include file="common/forum_head"}
<div class="fly-home fly-panel" style="background-image: url();">
  <img src="{$info.thumb}" title="{$info.username}">
  {if !empty($info['approve'])}
    <i class="iconfont icon-renzheng" title="Fly社区认证"></i>
  {/if}
  <h1>
    {$info.username}
    <i class="iconfont  {if $info['sex'] == 1} icon-nan {elseif $info['sex'] == 2} icon-nv {else} icon-weizhi {/if} "></i>

    {if !empty($info['approve'])}
      <i class="layui-badge fly-badge-vip">VIP</i>
    {/if}

    {if !empty($info['is_admin'])}
    <span style="color:#c00;">（管理员）</span>
    {/if}
    {if empty($info['disabled'])}
    <span style="color:#c00;">（该账号已被禁用）</span>
    {/if}
  </h1>

  {if !empty($info['approve'])}
    <p style="padding: 10px 0; color: #5FB878;">认证信息：
      {if $info['approve']==1}普通会员{/if}
    </p>
  {/if}

  <p class="fly-home-info">
    <i class="iconfont icon-jifen" title="积分"></i><span style="color: #FF7200;">{$info['credit']}积分</span>
    <i class="iconfont icon-shijian"></i><span>{$info.create_time} 加入</span>
    <i class="iconfont icon-chengshi"></i><span>来自中国</span>
  </p>

  <p class="fly-home-sign">（{if !empty($info['sign'])}{$info.sign}{else}这个人懒得留下签名{/if} ）</p>

  <div class="fly-sns" data-user="">
    <a href="javascript:;" class="layui-btn layui-btn-primary fly-imActive" data-type="addFriend">加为好友</a>
    <a href="javascript:;" class="layui-btn layui-btn-normal fly-imActive" data-type="chat">发起会话</a>
  </div>


</div>

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title">{$info.username} 最近的提问</h3>
        <ul class="jie-row">
          {if !empty($noteList)}
            {foreach $noteList as $key=>$val}
              <li>
                {if $val['is_good'] == 1}<span class="fly-jing layui-hide-xs">精</span>{/if}
                <a href="/index/forum/noteDetail/?id={$val.id}" class="jie-title" style="max-width: 62%">{$val.title}</a>
                <i style="float:right;margin-right: 40px;">{$val.create_time}</i>
                <em class="layui-hide-xs">{$val.comment_num}答</em>
              </li>
            {/foreach}
          {else}
              <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i></div>
          {/if}
        </ul>
      </div>
    </div>
    
    <div class="layui-col-md6 fly-home-da">
      <div class="fly-panel">
        <h3 class="fly-panel-title">{$info.username} 最近的回答</h3>
        <ul class="home-jieda">
          {if !empty($commentList)}
            {foreach $commentList as $key=>$val}
            <li>
              <p>
                <span>{$val.create_time}</span>
                在<a href="/index/forum/noteDetail/?id={$val.id}" target="_blank" style="max-width: 62%">{$val.title}</a>中回答：
              </p>
              <div class="home-dacontent">{$val.content}</div>
            </li>
            {/foreach}
          {else}
              <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div>
          {/if}
        </ul>
      </div>
    </div>

  </div>
</div>

<script>
    layui.cache.page = '';
    layui.cache.user = {
        username: '游客'
        ,uid: -1
        ,avatar: '../res/images/avatar/00.jpg'
        ,experience: 83
        ,sex: '男'
    };
    layui.config({
        version: "3.0.0"
        ,base: '__MODS__/' //这里实际使用时，建议改成绝对路径
    }).extend({
        fly: 'index'
    }).use('fly');
</script>

{include file="common/forum_foot"}